<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button>点击发送ajax请求</button>
    <script src="./libs/jquery-1.12.4.min.js"></script>
    <script>
      $('button').on('click', () => {
        $.ajax({
          type: 'post',
          url: 'http://localhost:3006/api/login',
          success: (res) => {
            console.log(res)
          },
        })
      })
    </script>
  </body>
</html>
